import store from "../../store";
const StyleTest = resolve => require(['../../style-containers/Test'], resolve);
const StyleConfirmGoodsInfo = resolve => require(['../../style-containers/ConfirmGoodsInfo'], resolve);
const RealTest = resolve => require(['../../real-containers/Test'], resolve);
const RealConfirmGoodsInfo = resolve => require(['../../real-containers/ConfirmGoodsInfo'], resolve);
// const AndroidPay = resolve => require(['../../real-containers/Pay/AndroidPay'], resolve);
// const IosPay = resolve => require(['../../real-containers/Pay/IosPay'], resolve);
// const Pay = resolve => require(['../../real-containers/Pay'], resolve);
// const newPay = resolve => require(['../../real-containers/Pay/newPay'], resolve);
// const oldPay = resolve => require(['../../real-containers/Pay/oldPay'], resolve);
const Pay = () => import(/* webpackChunkName: "pay" */ '../../real-containers/Pay');
const newPay = () => import(/* webpackChunkName: "pay" */ '../../real-containers/Pay/newPay');
const oldPay = resolve => require(['../../real-containers/Pay/oldPay'], resolve);
const otherPay = resolve => require(['../../real-containers/Pay/otherPay'], resolve);
const PaySuccessfully = () => import(/* webpackChunkName: "pay" */ '../../real-containers/PaySuccessfully');
// const ImgUpload = resolve => require(['../../real-components/ImgUpload'], resolve);
// const ImgUpload2 = resolve => require(['../../real-components/ImgUpload2'], resolve);
// const mMessageBox = resolve => require(['../../ui-components/m-msg/index.vue'], resolve);
// const Pay = resolve => require(['../../real-components/Pay'], resolve);
const Path = resolve => require(['../../real-components/PagePath'], resolve);
const gwTest = resolve => require(['../../real-containers/gwTest'], resolve);
const ThematicActivities = resolve => require(['../../real-containers/ThematicActivities'], resolve);
const NewThematicActivities = resolve => require(['../../real-containers/NewThematicActivities'], resolve);
const GoodsForSF = resolve => require(['../../real-containers/GoodsForSF'], resolve);
const NewUser = resolve => require(['../../real-containers/NewUser'], resolve);
const StyleHome = resolve => require(['../../style-containers/home'], resolve);
const EditHome = resolve => require(['../../edit-containers/EditHome'], resolve);
const EditActivities = resolve => require(['../../edit-containers/Activities'], resolve);
const StyleActivities = resolve => require(['../../style-containers/activities'], resolve);



let routerArray = [
    {
        path: "pay/:orderNo",
        name: "pay",
        title: "支付", 
        components: {
            real: Pay,
        } 
    },
    {
        path: "newPay",
        name: "newPay",
        title: "新支付", 
        components: {
            real: newPay,
        } 
    },
    {
        path: "oldPay",
        name: "oldPay",
        title: "老支付", 
        components: {
            real: oldPay,
        } 
    },
    {
        path: "otherPay",
        name: "otherPay",
        title: "找人代付", 
        components: {
            real: otherPay,
        } 
    },
    {
        path: "paysuccessfully",
        name: "paysuccessfully",
        title: "支付成功",
        components: {
            real: PaySuccessfully
        }
    },
    {
        path: "gwTest",
        name: "gwTest",
        title: "动感假面",
        components: {
            real: gwTest,
            style: StyleActivities,
            edit: EditActivities
        }
    },
    {
        path: "ThematicActivities",
        name: "ThematicActivities",
        title: "旧专题活动",
        components: {
            real: ThematicActivities,
            style: StyleActivities,
            edit: EditActivities
        }
    },
    {
        path: "NewThematicActivities",
        name: "NewThematicActivities",
        title: "专题活动",
        state: 1,
        components: {
            real: NewThematicActivities,
            style: StyleActivities,
            edit: EditActivities
        }
    },
    {
        path: "GoodsForSF",
        name: "GoodsForSF",
        title: "年货节",
        state: 1,
        components: {
            real: GoodsForSF,
            style: StyleActivities,
            edit: EditActivities
        }
    },
    {
        path: "NewUser",
        name: "NewUser",
        title: "新人专区",
        state: 1,
        components: {
            real: NewUser,
            style: StyleActivities,
            edit: EditActivities
        }
    }
]
export default routerArray;